﻿//----------------------------------------------------------------------------------------------------
// A NodeInstance is the representation of a node in a level
//----------------------------------------------------------------------------------------------------

package HG.Visual
{
	import flash.display.*;
	import flash.events.*;
	
	public class VisualAttachPoint extends MovieClip
	{
		var m_ID:Number;
		var m_visualNodeID:Number;
		var m_available:Boolean;
		var m_connection:Number;
		
		var m_xPos:Number;
		var m_yPos:Number;
		
		//----------------------------------------------------------------------------------------------------
		public function VisualAttachPoint(ID:Number, X:Number, Y:Number)
		{
			m_available = true;
			m_ID = ID;
			
			m_xPos = X;
			m_yPos = Y;
		}
		
		//----------------------------------------------------------------------------------------------------
		public function GetX():Number
		{
			return m_xPos;
		}
		//----------------------------------------------------------------------------------------------------
		public function GetY():Number
		{
			return m_yPos;
		}
		
		//----------------------------------------------------------------------------------------------------
		public function GetID():Number
		{
			return m_ID;
		}
		
		//----------------------------------------------------------------------------------------------------
		public function GetAvailable():Boolean
		{
			return m_available;
		}
		
		//----------------------------------------------------------------------------------------------------
		public function SetAvailable(available:Boolean)
		{
			m_available = available;
		}
		
		//----------------------------------------------------------------------------------------------------
		public function SetVisualNodeID(nodeID:Number)
		{
			m_visualNodeID = nodeID;
		}
		
		//----------------------------------------------------------------------------------------------------
		public function GetVisualNodeID():Number
		{
			return m_visualNodeID;
		}
		
		//----------------------------------------------------------------------------------------------------
	}

}